package cn.findviewbydream.evil.app.controller

import cn.findviewbydream.evil.app.service.FillInfoService
import cn.findviewbydream.evil.main.entity.EmployeeEntity
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.web.bind.annotation.RequestMapping
import org.springframework.web.bind.annotation.RequestMethod
import org.springframework.web.bind.annotation.RestController
import javax.servlet.http.HttpServletRequest

/********************************************
 * 工程名：MealOrder
 * 包名：cn.findviewbydream.evil.app.controller
 * 时间：16-12-23
 * 作者：白雨濃 evil
 * 邮箱：evilbai@foxmail.com
 * 内容：基本信息Controller
 ********************************************/
@RestController
class FillInfoAppController(@Autowired val fillInfoService: FillInfoService)
{
    @RequestMapping("/app/get/employee/list")
    fun getEmployeeTypeList() = fillInfoService.getEmployeeTypeList()

    @RequestMapping("/app/set/employee/info", method = arrayOf(RequestMethod.POST))
    fun setEmployeeInfo(name: String): EmployeeEntity? = fillInfoService.setsetEmployeeInfo(name)
}